﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LoginSite.Master" Inherits="System.Web.Mvc.ViewPage<CapaDeDominio.Usuario>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Login
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Login</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Validar", "Usuario", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>
    
        <fieldset>
            <legend>Login</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.User) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.User) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Clave) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(model => model.Clave)%>
            </div>
            
            <p>
                <input type="submit" value="Login" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

